use wasm_bindgen::prelude::wasm_bindgen;

// glue between rust and typescript
#[wasm_bindgen]
extern {
	pub fn alert(s: &str);
}

// this function will be enabled for typescript
#[wasm_bindgen]
pub fn greet(name: &str) {
	alert(&format!("Hello, {}!", name));
}
